package com.data.modules.ai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.data.common.aspect.annotation.Dict;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 自动化流程规则数据
 * @Author: data-boot
 * @Date:   2022-03-03
 * @Version: V1.0
 */
@Data
@TableName("ai_rule")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ai_rule对象", description="自动化流程规则数据")
public class AiRule implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**数据标题*/
	@Excel(name = "数据标题", width = 15)
    @ApiModelProperty(value = "数据标题")
    private String title;
	/**主体*/
	@Excel(name = "主体", width = 15)
    @ApiModelProperty(value = "主体")
    private String company;
	/**crm 主体id*/
	@Excel(name = "crm 主体id", width = 15)
    @ApiModelProperty(value = "crm 主体id")
    private Integer companyId;
	/**城市*/
	@Excel(name = "城市", width = 15)
    @ApiModelProperty(value = "城市")
    private String city;
	/**crm 城市id*/
	@Excel(name = "crm 城市id", width = 15)
    @ApiModelProperty(value = "crm 城市id")
    private Integer cityId;
	/**crm 城市编码*/
	@Excel(name = "crm 城市编码", width = 15)
    @ApiModelProperty(value = "crm 城市编码")
    private String cityCode;
	/**数据来源 1-微信*/
	@Dict(dicCode = "ai_rule_source")
	@Excel(name = "数据来源 1-微信", width = 15)
    @ApiModelProperty(value = "数据来源 1-微信")
    private Integer source;
	/**数据状态*/
    @Dict(dicCode = "valid_status")
	@Excel(name = "数据状态", width = 15)
    @ApiModelProperty(value = "数据状态")
    private Integer status;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**逻辑删除 0否 1是*/
	@Excel(name = "逻辑删除 0否 1是", width = 15)
    @ApiModelProperty(value = "逻辑删除 0否 1是")
    private Integer logicDel;
}
